package com.zee.wechat.module.menu.mapper;

import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * menuMapper
 *
 * @author Zee
 * @date 2020年10月16日
 */
public interface MenuMapper {
    /**
     * 添加菜单
     *
     * @param param
     */
    public void addMenu(Map<String, Object> param);

    /**
     * 添加子菜单
     *
     * @param param
     */
    public void addSubMenu(Map<String, Object> param);

    public List<Map<String, Object>> queryMenus(
            @Param(value = "wechatId") String wechatId);

    public List<Map<String, Object>> querySubMenus(
            @Param(value = "menuCode") String menuCode);

    public void deleteMenu(@Param(value = "menuCode") String menuCode)
            ;

    public void deleteSubMenu(@Param(value = "menuCode") String menuCode)
            ;

    public Map<String, Object> queryMenuByCode(
            @Param(value = "menuCode") String menuCode);

    public Map<String, Object> querySubMenuByCode(
            @Param(value = "menuCode") String menuCode);

    public void deleteAllSubMenu(@Param(value = "menuCode") String menuCode)
            ;

    public void updateMenu(Map<String, String> param);

    public void updateSubMenu(Map<String, String> param);

    public Map<String, Object> queryWechatInfoById(
            @Param(value = "wechatId") String wechatId);

    public void updateMenuHasSubMenu(
            @Param(value = "hasSubMenu") String hasSubMenu,
            @Param(value = "menuCode") String menuCode);
}
